﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ZhongJia.Core.Tcp;
using ZhongJia.Lock.Core.Dto;
using ZhongJia.Lock.Core.Models;

namespace ZhongJia.Lock.Core.Services
{
    public interface ITcpService
    {
        ConcurrentDictionary<SocketAsync<TcpPackage>, string> OnLineDevices { get; set; }

        OpenLockResult Open(string deviceSerialNumber);

        void Start(int port);
    }
}
